import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 用户资料
 */
@Entity('community_user_info')
export class CommunityUserInfoEntity extends BaseEntity {
  @Column({ comment: '头像', nullable: true })
  avatar: string;

  @Column({ comment: '昵称', nullable: true })
  nickname: string;

  @Column({ comment: '性别', dict: ['未知', '男', '女'], default: 0 })
  gender: number;

  @Column({ comment: '个性签名', nullable: true })
  signature: string;

  @Column({ comment: '状态', dict: ['正常', '禁用'], default: 0 })
  status: number;

  @Column({ comment: '地区', nullable: true })
  region: string;

  @Column({ comment: '生日', type: 'date', nullable: true })
  birthday: Date;

  @Column({ comment: '背景图', nullable: true })
  background: string;
}
